/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 顶部广告 */
.top-ad {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #4CAF50;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: height 0.5s ease;
}

.top-ad.collapsed {
    height: 0;
}

.ad-content {
    text-align: center;
}

.ad-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.html-code {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    display: inline-block;
}

.close-ad {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-ad:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 导航条 */
.navigation-bar {
    background-color: #333;
    padding: 15px 0;
}

.navigation-bar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navigation-bar li {
    margin: 0 15px;
}

.navigation-bar a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 10px;
    transition: color 0.3s;
}

.navigation-bar a:hover {
    color: #4CAF50;
}

/* 轮播图 */
.carousel {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.carousel-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.carousel-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.carousel-indicators span.active {
    background-color: white;
}

/* 最新热点 */
.hot-news {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hot-news h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h3 {
    padding: 15px 15px 0;
    font-size: 1.3rem;
}

.news-item p {
    padding: 10px 15px 20px;
    color: #666;
}